/**
 * Created by Elsa on 2017/9/5.
 */

layui.define(['form','jquery'], function(exports){
    var form = layui.form(),
        $ = layui.jquery,
        layer = layui.layer;

    var lognum = getQueryString("inspnum");
    console.log(lognum);

    form.render();

    //自定义验证规则
    form.verify({
        title: function(value) {
            if(value.length < 5) {
                return '标题至少得5个字符啊';
            }
        },
        pass: [/(.+){6,12}$/, '密码必须6到12位'],
        content: function(value) {
            layedit.sync(editIndex);
        }
    });



    exports('ConstNewLogList', {}); //注意，这里是模块输出的核心，模块名必须和use时的模块名一致
});